import request from '@/utils/request'

// 查询立库盘点审核详情列表
export function listDetail(query) {
  return request({
    url: '/ims/detail/list',
    method: 'get',
    params: query
  })
}

// 查询立库盘点审核详情详细
export function getDetail(inventoryDetailId) {
  return request({
    url: '/ims/detail/' + inventoryDetailId,
    method: 'get'
  })
}

// 新增立库盘点审核详情
export function addDetail(data) {
  return request({
    url: '/ims/detail',
    method: 'post',
    data: data
  })
}

// 修改立库盘点审核详情
export function updateDetail(data) {
  return request({
    url: '/ims/detail',
    method: 'put',
    data: data
  })
}

// 删除立库盘点审核详情
export function delDetail(inventoryDetailId) {
  return request({
    url: '/ims/detail/' + inventoryDetailId,
    method: 'delete'
  })
}
